package com.tan.service.impl;

import com.tan.domain.User;
import com.tan.mapper.UserMapper;
import com.tan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author by 团子
 * @Classname UserServiceImpl
 * @Description TODO
 * @Date 2022/1/5 16:56
 * @Created by 团子
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    /**
     * 用户 mapper 对象
     */
    @Autowired
    private UserMapper userMapper;


    @Override
    public User queryUserById(Integer id) {
        return userMapper.queryUserById(id);
    }

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }
}
